package com.rankeiot.developer.component.service;

import com.rankeiot.developer.component.model.TableInfo;
import org.ssssssss.magicapi.core.service.AbstractPathMagicResourceStorage;

public class TableInfoMagicResourceStorage extends AbstractPathMagicResourceStorage<TableInfo> {

    @Override
    public String folder() {
        return "table";
    }

    @Override
    public Class<TableInfo> magicClass() {
        return TableInfo.class;
    }

    @Override
    public void validate(TableInfo entity) {
    }

    @Override
    public String buildMappingKey(TableInfo info) {
        return buildMappingKey(info, magicResourceService.getGroupPath(info.getGroupId()));
    }

}
